<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_dhcp_operate.php";
include_once "function_misc_log.php";

$i = $_GET['number'];
$t = $_GET['type'];

$log = array();
$log['Number'] = $i;

if ($t == "AddrPool")
{
	DelXmlDhcpSpecialAddrPool($i);
	logger("Del", $log, "Dhcp_Pool");
}
else if ($t == "MacBind")
{
	DelXmlDhcpSpecialMacBind($i);
	logger("Del", $log, "Dhcp_Bind");
}

echo("<meta http-equiv='refresh'content=0;URL='dhp_server_manage.php'>");
?>
